using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// BBS_List - 论坛主题表 - 对象继承类
    /// </summary>
    [MetadataType(typeof(BBSListValidaTion))]
    public class BBSList : IBBSList<BBSList>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class BBSListValidaTion
       {

     

        /// <summary>
        /// 主题ID
        /// </summary>
        [Display(Name ="主题ID")]
        [Required]
        [StringLength(36)]
        public String BbsId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 版块ID
        /// </summary>
        [Display(Name ="版块ID")]
        [Required]
        [StringLength(36)]
        public String PlateId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name ="用户ID")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 标题
        /// </summary>
        [Display(Name ="标题")]
        [Required]
        [StringLength(100)]
        public String Title
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 内容
        /// </summary>
        [Display(Name ="内容")]
        [Required]
        [StringLength(36)]
        public String ContentId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name ="创建时间")]
        [Required]

        public DateTime SubmitTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name ="修改时间")]

        public DateTime EditTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 被回复时间
        /// </summary>
        [Display(Name ="被回复时间")]
        [Required]

        public DateTime ReplyTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 置顶时间
        /// </summary>
        [Display(Name ="置顶时间")]

        public DateTime TopTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 标题颜色
        /// </summary>
        [Display(Name ="标题颜色")]
        [StringLength(10)]
        public String TitleColor
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否置顶
        /// </summary>
        [Display(Name ="是否置顶")]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsTop
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否关闭评论
        /// </summary>
        [Display(Name ="是否关闭评论")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsCloseReply
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否被删除
        /// </summary>
        [Display(Name ="是否被删除")]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsClose
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name ="排序")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]
        public int Sno
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
